package goRpc

import (
	"github.com/flipped-aurora/gin-vue-admin/server/goRpc/res"
	"github.com/flipped-aurora/gin-vue-admin/server/model/archive"
)

type ArchiveFileRpc struct {
}

func (r ArchiveFileRpc) Create(archiveFile *archive.ArchiveFile, reply *res.Response) error {
	err := archiveFileService.CreateArchiveFile(archiveFile)
	if err != nil {
		return err
	}

	*reply = res.Ok()

	return nil
}
